package com.wxb.shmily.controller.user;

import com.alibaba.dubbo.config.annotation.Reference;
import com.wxb.shmily.TestService;
import com.wxb.shmily.bean.user.User;
import com.wxb.shmily.user.api.UserService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by shmily on 2018/4/26.
 */
@RestController
public class UserController {


    @Reference
    TestService testService;

    @RequestMapping("/test")
    public String test(){
        return testService.get("I'm 格瑞特");
    }

    public static void main(String[] args) {
        Pattern p = Pattern.compile("^[0-9]*$");
        Matcher m = p.matcher("62212263901016987089");
        System.out.println(m.matches());
    }
}
